package com.chengfei.thread.demo1;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * 线程池
 *
 * @author chengfei5
 * @date 2019/1/7
 */
public class NewThread6 {
    public static void main(String[] args) {
        Executor threadPool = Executors.newFixedThreadPool(10);
        threadPool.execute(() -> System.out.println(Thread.currentThread().getName()+"线程正在执行"));
    }
}
